package cn.itcast.tanhua.mytanhuaserver.service;

import cn.itcast.tanhua.vo.PageResult;
import org.springframework.web.multipart.MultipartFile;

/**
 * 关注用户、取消关注用户
 * @author 郭文亮
 * @since 2021/12/1 18:32
 */
public interface VideoService {
    /**
     * 关注用户
     * @param followUserId 被关注人的id
     * @return 关注用户的结果
     * @throws Exception 可能会出现的异常
     */
    Boolean userFocus(Long followUserId) throws Exception;

    /**
     * 取消关注用户
     * @param followUserId 被取消关注人的id
     * @return 取消关注用户的结果
     * @throws Exception 可能会出现的异常
     */
    Boolean userUnFocus(Long followUserId) throws Exception;

    Boolean saveVideo(MultipartFile picFile, MultipartFile videoFile) throws Exception;

    PageResult querySmallVideos(Integer page, Integer pageSize) throws Exception;

    Long likeComment(String videoId);

    Long disLikeComment(String videoId);

    PageResult queryCommentList(String videoId, Integer page, Integer pageSize);

    Boolean saveComment(String videoId, String content);
}
